package com.ibm.mall.app.action;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.ibm.mall.base.BaseAction;
import com.ibm.mall.model.CommodityClass;
import com.ibm.mall.model.User;
import com.ibm.mall.util.MD5Util;
import com.opensymphony.xwork2.ActionContext;

@Controller
@Scope("prototype")
public class ListAction extends BaseAction<User> {

	private static final long serialVersionUID = 1L;
	
	private Map responseJson=new HashMap();
	
	private String account;
	
	private String password;
	
    public Map getResponseJson() {   
        return responseJson;   
    }
    
    public void setResponseJson(Map responseJson) {   
        this.responseJson = responseJson;   
    }
	
	public String list() {
		List<CommodityClass> commodityClassList=commodityClassService.getTopCommodityClass();
		responseJson.put("commodityClassList", commodityClassList);
		return "list";
	}

}
